﻿/*****************************************************
 * 本类库的核心系 JNTemplate
 * (C) JNTemplate 2011
 * 作者：翅膀的初衷 QQ:4585839
 * 网址：http://www.JiNianNet.com
 *****************************************************/
using System;
using System.Collections.Generic;
using System.Reflection;
namespace JinianNet.JNTemplate
{
    public enum TokenKind
    {
        /// <summary>
        /// 方法标签
        /// </summary>
        Function,
        /// <summary>
        /// Foreach标签
        /// </summary>
        Foreach,
        /// <summary>
        /// 文本
        /// </summary>
        Text,
        /// <summary>
        /// 标签（待进一步处理）
        /// </summary>
        Tag,
        /// <summary>
        /// 变量标签
        /// </summary>
        Variable,
        /// <summary>
        /// IF标签
        /// </summary>
        If,
        /// <summary>
        /// SET标签
        /// </summary>
        Set,
        /// <summary>
        ///  
        /// </summary>
        Load,
        /// <summary>
        /// FOR标签 
        /// </summary>
        //For,
        /// <summary>
        /// 特殊标签，允许执行简易C#语句
        /// </summary>
        //CShare
    }
    public class ProcessEventArgs : EventArgs
    {
        private string _document;
        public string Document
        {
            get { return _document; }
            set { _document = value; }
        }
    }
    public delegate void ProcessEventHandler(object sender, ProcessEventArgs e);
    public delegate object FuncHandler(params object[] args);
}
